package com.zjj.learn.javaplus.pkg06.demo607;

import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;

public class BufferWriterDemo {

    public static void main(String[] args) throws IOException {
        BufferedWriter bw = new BufferedWriter(new FileWriter("bw.txt", true));
        String line = "新添加的数据";
        bw.write(line);
        bw.newLine();
        bw.write("换行输出");
        bw.close();

    }
}
